.class Lframent/FramentOrder2$GoodsAdapter$4;
.super Ljava/lang/Object;
.source "FramentOrder2.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lframent/FramentOrder2$GoodsAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lframent/FramentOrder2$GoodsAdapter;


# direct methods
.method constructor <init>(Lframent/FramentOrder2$GoodsAdapter;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lframent/FramentOrder2$GoodsAdapter$4;->this$1:Lframent/FramentOrder2$GoodsAdapter;

    .line 1383
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 5
    .param p1, "arg0"    # Landroid/view/View;

    .prologue
    .line 1387
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v2

    .line 1388
    .local v2, "postion":I
    iget-object v3, p0, Lframent/FramentOrder2$GoodsAdapter$4;->this$1:Lframent/FramentOrder2$GoodsAdapter;

    # getter for: Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;
    invoke-static {v3}, Lframent/FramentOrder2$GoodsAdapter;->access$0(Lframent/FramentOrder2$GoodsAdapter;)Lframent/FramentOrder2;

    move-result-object v3

    # getter for: Lframent/FramentOrder2;->beans2:Ljava/util/ArrayList;
    invoke-static {v3}, Lframent/FramentOrder2;->access$10(Lframent/FramentOrder2;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/GoodsBean;

    .line 1390
    .local v0, "bean":Lbean/GoodsBean;
    invoke-virtual {v0}, Lbean/GoodsBean;->getHave_det()Ljava/lang/String;

    move-result-object v3

    const-string v4, "1"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_0

    .line 1391
    new-instance v1, Landroid/content/Intent;

    iget-object v3, p0, Lframent/FramentOrder2$GoodsAdapter$4;->this$1:Lframent/FramentOrder2$GoodsAdapter;

    # getter for: Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;
    invoke-static {v3}, Lframent/FramentOrder2$GoodsAdapter;->access$0(Lframent/FramentOrder2$GoodsAdapter;)Lframent/FramentOrder2;

    move-result-object v3

    # getter for: Lframent/FramentOrder2;->context:Landroid/content/Context;
    invoke-static {v3}, Lframent/FramentOrder2;->access$2(Lframent/FramentOrder2;)Landroid/content/Context;

    move-result-object v3

    const-class v4, Lcom/example/m6wmr/DishesActivity2;

    invoke-direct {v1, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 1392
    .local v1, "intent":Landroid/content/Intent;
    const-string v3, "goodsid"

    invoke-virtual {v0}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1393
    const-string v3, "shopid"

    iget-object v4, p0, Lframent/FramentOrder2$GoodsAdapter$4;->this$1:Lframent/FramentOrder2$GoodsAdapter;

    # getter for: Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;
    invoke-static {v4}, Lframent/FramentOrder2$GoodsAdapter;->access$0(Lframent/FramentOrder2$GoodsAdapter;)Lframent/FramentOrder2;

    move-result-object v4

    # getter for: Lframent/FramentOrder2;->shopid:Ljava/lang/String;
    invoke-static {v4}, Lframent/FramentOrder2;->access$5(Lframent/FramentOrder2;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1394
    const-string v3, "open"

    iget-object v4, p0, Lframent/FramentOrder2$GoodsAdapter$4;->this$1:Lframent/FramentOrder2$GoodsAdapter;

    # getter for: Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;
    invoke-static {v4}, Lframent/FramentOrder2$GoodsAdapter;->access$0(Lframent/FramentOrder2$GoodsAdapter;)Lframent/FramentOrder2;

    move-result-object v4

    # getter for: Lframent/FramentOrder2;->open:Ljava/lang/String;
    invoke-static {v4}, Lframent/FramentOrder2;->access$0(Lframent/FramentOrder2;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1396
    iget-object v3, p0, Lframent/FramentOrder2$GoodsAdapter$4;->this$1:Lframent/FramentOrder2$GoodsAdapter;

    # getter for: Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;
    invoke-static {v3}, Lframent/FramentOrder2$GoodsAdapter;->access$0(Lframent/FramentOrder2$GoodsAdapter;)Lframent/FramentOrder2;

    move-result-object v3

    invoke-virtual {v3, v1}, Lframent/FramentOrder2;->startActivity(Landroid/content/Intent;)V

    .line 1404
    :goto_0
    return-void

    .line 1398
    .end local v1    # "intent":Landroid/content/Intent;
    :cond_0
    new-instance v1, Landroid/content/Intent;

    iget-object v3, p0, Lframent/FramentOrder2$GoodsAdapter$4;->this$1:Lframent/FramentOrder2$GoodsAdapter;

    # getter for: Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;
    invoke-static {v3}, Lframent/FramentOrder2$GoodsAdapter;->access$0(Lframent/FramentOrder2$GoodsAdapter;)Lframent/FramentOrder2;

    move-result-object v3

    # getter for: Lframent/FramentOrder2;->context:Landroid/content/Context;
    invoke-static {v3}, Lframent/FramentOrder2;->access$2(Lframent/FramentOrder2;)Landroid/content/Context;

    move-result-object v3

    const-class v4, Lcom/example/m6wmr/DishesParticularActivity;

    invoke-direct {v1, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 1399
    .restart local v1    # "intent":Landroid/content/Intent;
    const-string v3, "goodsid"

    invoke-virtual {v0}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1400
    const-string v3, "shopid"

    iget-object v4, p0, Lframent/FramentOrder2$GoodsAdapter$4;->this$1:Lframent/FramentOrder2$GoodsAdapter;

    # getter for: Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;
    invoke-static {v4}, Lframent/FramentOrder2$GoodsAdapter;->access$0(Lframent/FramentOrder2$GoodsAdapter;)Lframent/FramentOrder2;

    move-result-object v4

    # getter for: Lframent/FramentOrder2;->shopid:Ljava/lang/String;
    invoke-static {v4}, Lframent/FramentOrder2;->access$5(Lframent/FramentOrder2;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1401
    const-string v3, "open"

    iget-object v4, p0, Lframent/FramentOrder2$GoodsAdapter$4;->this$1:Lframent/FramentOrder2$GoodsAdapter;

    # getter for: Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;
    invoke-static {v4}, Lframent/FramentOrder2$GoodsAdapter;->access$0(Lframent/FramentOrder2$GoodsAdapter;)Lframent/FramentOrder2;

    move-result-object v4

    # getter for: Lframent/FramentOrder2;->open:Ljava/lang/String;
    invoke-static {v4}, Lframent/FramentOrder2;->access$0(Lframent/FramentOrder2;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1402
    iget-object v3, p0, Lframent/FramentOrder2$GoodsAdapter$4;->this$1:Lframent/FramentOrder2$GoodsAdapter;

    # getter for: Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;
    invoke-static {v3}, Lframent/FramentOrder2$GoodsAdapter;->access$0(Lframent/FramentOrder2$GoodsAdapter;)Lframent/FramentOrder2;

    move-result-object v3

    invoke-virtual {v3, v1}, Lframent/FramentOrder2;->startActivity(Landroid/content/Intent;)V

    goto :goto_0
.end method
